package net.dgg.dggcloud.service.jrcrm.entity.orf;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 财务，业绩利润表
 *
 * @author 郭伟 2017/11/2
 */

@Entity
@Table(name = "orf_performance_profit")
public class PerformancePrefit  extends BaseEntity {


    /**
     *  分配人
     */
    @Column(name="sign_user_id")
    private Long signUserId;

    /**
     *  人员类型
     */
    @Column(name="user_type")
    private String userType;



    /**
     *  核款ID
     */
    @Column(name="payment_id")
    private Long paymentId;

    /**
     *  业绩比例
     */
    @Column(name="performance_proportion")
    private Integer performanceProportion;

    /**
     *  利润比例
     */
    @Column(name="profit_proportion")
    private Integer profitProportion;

    /**
     *  订单ID
     */
    @Column(name="order_id")
    private Long orderId;

    /**
     *  子订单ID
     */
    @Column(name="order_business_id")
    private Long orderBusinessId;



    /**
     *  签单部门
     */
    @Column(name="sign_org_id")
    private Long signOrgId;

    /**
     *  分配业绩
     */
    @Column(name="performance_amount")
    private Long performanceAmount;

    /**
     *  分配利润
     */
    @Column(name="profit_amount")
    private Long profitAmount;

    /**
     *  类型 1 核款 2 退款
     */
    @Column(name="type")
    private Integer type;


    /**
     *  是否是转介绍 0 否 1 是
     */
    @Column(name="is_referral")
    private Integer isReferral = 0;

    /**
     *  是否完成 0 否 1 是
     */
    @Column(name="is_complete")
    private Integer isComplete = 0;


    public Integer getIsReferral() {
        return isReferral;
    }

    public void setIsReferral(Integer isReferral) {
        this.isReferral = isReferral;
    }

    public Integer getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(Integer isComplete) {
        this.isComplete = isComplete;
    }

    public Long getSignUserId() {
        return signUserId;
    }

    public void setSignUserId(Long signUserId) {
        this.signUserId = signUserId;
    }

    public Long getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(Long paymentId) {
        this.paymentId = paymentId;
    }

    public Integer getPerformanceProportion() {
        return performanceProportion;
    }

    public void setPerformanceProportion(Integer performanceProportion) {
        this.performanceProportion = performanceProportion;
    }

    public Integer getProfitProportion() {
        return profitProportion;
    }

    public void setProfitProportion(Integer profitProportion) {
        this.profitProportion = profitProportion;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getSignOrgId() {
        return signOrgId;
    }

    public void setSignOrgId(Long signOrgId) {
        this.signOrgId = signOrgId;
    }

    public Long getPerformanceAmount() {
        return performanceAmount;
    }

    public void setPerformanceAmount(Long performanceAmount) {
        this.performanceAmount = performanceAmount;
    }

    public Long getProfitAmount() {
        return profitAmount;
    }

    public void setProfitAmount(Long profitAmount) {
        this.profitAmount = profitAmount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Long getOrderBusinessId() {
        return orderBusinessId;
    }

    public void setOrderBusinessId(Long orderBusinessId) {
        this.orderBusinessId = orderBusinessId;
    }
}
